import store from '@/store/index'
export  function hasPermission (key){
	 const permissions = store.getters && store.getters.permissions
    return permissions.indexOf(key) !== -1 || false;
}
